'''
Created on 24/10/2011

@author: Mateo
'''
from planificator import Planificator

class RoundRobin(Planificator):
    '''
    classdocs
    '''


    def __init__(self,time):
        '''
        Constructor
        '''
        self.timer=time
        
    def click(self,so,readyQ):
        
        self.timer.click(so,readyQ)
        
    def reschedule(self, scheduler, cpu):
       
        pid = scheduler.firstPID()
        scheduler.runPCB(pid, cpu)
        
        
    